package cn.wolfcode.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class LogoutController {


    @RequestMapping("/logout")
    public String logout(HttpSession session) {
        //注销操作
        session.invalidate();
        return "redirect:/login.html";
    }
}